<template>
  <div class="device-statistics">
    <!-- 标题 -->
    <div class="panel-header">
      <h3 class="panel-title">设备统计</h3>
    </div>
    <!-- 内容 -->
    <div class="panel-content">
      <!-- 设备信息 -->
      <div class="device-info">
        <div class="device-title">大疆无人机</div>
        <div class="device-title-sub">设备统计</div>
      </div>
      <!-- 数据模块 -->
      <div class="data-module">
        <div class="data-module-item item-1">
          <div class="data-module-item-title">在线设备数量</div>
          <div class="data-module-item-value"><span class="value-highlight">12</span>个</div>
        </div>
        <div class="data-module-item item-2">
          <div class="data-module-item-title">离线设备数量</div>
          <div class="data-module-item-value"><span class="value-highlight">12</span>个</div>
        </div>
        <div class="data-module-item item-3">
          <div class="data-module-item-title">总飞手数量</div>
          <div class="data-module-item-value"><span class="value-highlight">12</span>个</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
// 设备统计组件
</script>

<style lang="scss" scoped>
.device-statistics {
  width: 404px;
  height: 258px;
  background: url('@/assets/images/dashboard_normal_model_bg.png') no-repeat center center;
  background-size: 100% 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  
  .panel-header {
    height: 38px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    
    .panel-title {
      font-size: 18px;
      font-weight: 900;
      letter-spacing: 2px;
      line-height: 18px;
      vertical-align: top;
      background: linear-gradient(180deg, rgba(238, 238, 238, 1) 0%, rgba(238, 238, 238, 1) 40%, rgba(59, 135, 202, 1) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.5));
      position: relative;
      bottom: -2px;
    }
  }
  
  .panel-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;

    // 设备信息
    .device-info {
      background: url('@/assets/images/dashboard_device_statistics_img1.png') no-repeat center center;
      // background-size: 192px 200px;
      background-size: 110% 120%;
      width: 172px;
      height: 172px;
      // margin-right: 7px;
      .device-title {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0px;
        line-height: 12.75px;
        color: rgba(255, 255, 255, 1);
        text-align: center;
        padding-top: 137px;
        box-sizing: border-box;
      }
      .device-title-sub {
        font-size: 9px;
        font-weight: 400;
        letter-spacing: 0px;
        line-height: 12.75px;
        color: rgba(255, 255, 255, 1);
        text-align: center;
      }
    }

    // 数据模块
    .data-module {
      .data-module-item {
        width: 204px;
        height: 44px;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px 0 26px;
        & + .data-module-item {
          margin-top: 15px;
        }
        &.item-1 {
          background: url('@/assets/images/dashboard_device_statistics_img2.png') no-repeat right center;
          background-size: auto 100%;
        }
        &.item-2 {
          background: url('@/assets/images/dashboard_device_statistics_img3.png') no-repeat right center;
          background-size: auto 100%;
        }
        &.item-3 {
          background: url('@/assets/images/dashboard_device_statistics_img4.png') no-repeat right center;
          background-size: auto 100%;
        }
        .data-module-item-title {
          font-size: 12.69px;
          font-weight: 600;
          letter-spacing: 0px;
          line-height: 12.6px;
          color: rgba(255, 255, 255, 1);
          position: relative;
          bottom: -2px;
        }
        .data-module-item-value {
          font-size: 16px;
          font-weight: 500;
          letter-spacing: 0px;
          line-height: 16px;
          color: rgba(255, 255, 255, 1);
          position: relative;
          bottom: 1px;
          .value-highlight {
            font-size: 24px;
            font-weight: 500;
            letter-spacing: 0px;
            line-height: 24px;
            color: rgba(0, 255, 244, 1);
            margin-right: 8px;
          }
        }
      }
    }
  }
}
</style>